Force Delete an EPG

You can forcefully delete an EPG.

About this task

Follow this procedure to forcefully delete an EPG.

Procedure

Run the following command:
efa tenant epg delete --name <> --teannt <> --force

The force option allows you to delete an EPG when dependent peer configuration is present. It deletes the EPG and associated dependent configuration from XCO and device.

The force option allows you to delete an EPG from the application when it is stuck in unexpected state and no other operations are allowed on it. Deleting an EPG with force option cleans up the entity from application and device.

Example

efa tenant epg show --detail
===============================================================================================================================================================
Name          : e11
Tenant        : tv3
Type          : extension
State         : epg-port-group-delete-pending
Description   :

Ports         : 10.20.61.91[0/5]
              : 10.20.61.90[0/5]
POs           :
Port Property : SwitchPort Mode               : trunk
              : Native Vlan Tagging           : true
              : Single-Homed BFD Session Type : auto
NW Policy     : Ctag Range                    : 11
              : VRF                           : blue_dr
              : L3Vni                         : 14191

+-------------------------------+-------------------------------+------------------------------+------------------------------+--------------------------------+
|          MAC ACL IN           |          MAC ACL OUT          |          IP ACL IN           |          IP ACL OUT          |          IPv6 ACL IN           |
+-------------------------------+-------------------------------+------------------------------+------------------------------+--------------------------------+
| ext-mac-permit-any-mirror-acl | ext-mac-permit-any-mirror-acl | ext-ip-permit-any-mirror-acl | ext-ip-permit-any-mirror-acl | ext-ipv6-permit-any-mirror-acl |
+-------------------------------+-------------------------------+------------------------------+------------------------------+--------------------------------+
Port Property ACLs

+------------------+-------------+-------------+
|       Port       |  Dev State  |  App State  |
+------------------+-------------+-------------+
| 10.20.61.91[0/5] | provisioned | cfg-in-sync |
+------------------+-------------+-------------+
| 10.20.61.90[0/5] | provisioned | cfg-in-sync |
+------------------+-------------+-------------+
Port Property States

+------+-------------+-------+---------+----------------+--------------+----------+----------------------------+---------------+--------+---------+----------------+--------------+-------------+-------------+
| Ctag |    Ctag     | L2Vni | BD Name |  Anycast IPv4  | Anycast IPv6 | Suppress |          Local IP          | Icmp Redirect | IP MTU | IPv6 ND |    IPv6 ND     |   IPv6 ND    |  Dev State  |  App State  |
|      | Description |       |         |                |              |  ARP/ND  |   [Device-IP->Local-IP]    |   IPv4/IPv6   |        |   MTU   | Managed Config | Other Config |             |             |
+------+-------------+-------+---------+----------------+--------------+----------+----------------------------+---------------+--------+---------+----------------+--------------+-------------+-------------+
|  11  |   ctag-11   | 10002 |         | 11.11.11.9/29  | 11a::1a/125  |   T/T    | 10.20.61.90->11ab::31a/64, |      F/F      |  9000  |  9000   |      true      |     true     | provisioned | cfg-in-sync |
|      |             |       |         |  11.11.11.1/29 | 11::11/125   |          |       1011::31a/64,        |               |        |         |                |              |             |             |
|      |             |       |         | 11.11.11.17/29 |              |          | 2.2.2.30/29, 2.2.2.132/29  |               |        |         |                |              |             |             |
|      |             |       |         |                |              |          | 10.20.61.91->1011::32a/64, |               |        |         |                |              |             |             |
|      |             |       |         |                |              |          | 2.2.2.137/29, 2.2.2.37/29, |               |        |         |                |              |             |             |
|      |             |       |         |                |              |          |        11ab::32a/64        |               |        |         |                |              |             |             |
+------+-------------+-------+---------+----------------+--------------+----------+----------------------------+---------------+--------+---------+----------------+--------------+-------------+-------------+
Network Property [Flags : * - Native Vlan]

+------+----------------+--------------+----------------+--------------------+---------------+
| Ctag | IPv6 ND Prefix | No Advertise | Valid Lifetime | Preferred Lifetime |  Config Type  |
+------+----------------+--------------+----------------+--------------------+---------------+
|  11  |   1002::/125   |    false     |    infinite    |      1020304       |   off-link    |
+------+----------------+--------------+----------------+--------------------+---------------+
|  11  |   1003::/125   |    false     |    1020304     |      1020304       |   no-onlink   |
+------+----------------+--------------+----------------+--------------------+---------------+
|  11  |   1004::/125   |    false     |    infinite    |      infinite      | no-autoconfig |
+------+----------------+--------------+----------------+--------------------+---------------+
IPv6 ND Prefix Flags

+------+------------+-------------+-----------+------------+-------------+
| Ctag | MAC ACL IN | MAC ACL OUT | IP ACL IN | IP ACL OUT | IPv6 ACL IN |
+------+------------+-------------+-----------+------------+-------------+
Network Property ACLs

+------+-------------------------------------+--------------------------------------------------------------+---------------------------------------------+-------------------------------------------+
| Ctag |              AddressIP              |      AddressIPv6 :  Device-IP->[{Address-IPv6,Vrf}] OR       |                GatewayIP :                  |              GatewayIPv6 :                |
|      |    Device-IP->[{Address-IP,Vrf}]    |       Device-IP->[{Address-IPv6,Vrf,InfType,InfName}]        | Device-IP->{Gateway-IP,InfType,InfName} OR  | Device-IP->{InfType,InfName,Gateway-IPv6} |
|      |                                     |                                                              |        Device-IP->{InfType,InfName}         |                                           |
+------+-------------------------------------+--------------------------------------------------------------+---------------------------------------------+-------------------------------------------+
|  11  | 10.20.61.90->[{10.20.30.2,blue_dr}] |               10.20.61.90->[{11b::2,blue_dr}]                |         10.20.61.90->{10.20.30.1,,}         |         10.20.61.90->{eth,0/10,}          |
|      | 10.20.61.91->[{10.20.30.2,blue_dr}] |               10.20.61.91->[{11b::2,blue_dr}]                |      10.20.61.91->{10.20.30.1,eth,0/9}      |         10.20.61.91->{eth,0/10,}          |
+------+-------------------------------------+--------------------------------------------------------------+---------------------------------------------+-------------------------------------------+
DHCP Relay Ips


For 'unstable' entities, run 'efa tenant po/vrf show' for details

===============================================================================================================================================================

--- Time Elapsed: 703.520561ms ---



efa tenant epg delete --name e11 --tenant tv3 --force

EndpointGroup delete with "force" option will delete the device configuration corresponding to the EndpointGroup and also deletes the EPG from the application. Do you want to proceed (Y/N): y

EndpointGroup: e11 deleted successfully.

--- Time Elapsed: 7.326435001s ---